x86/hpet: clear unwanted bits
authorJan Beulich <jbeulich@suse.com>
Tue, 27 Mar 2012 13:23:43 +0000 (15:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Mar 2012 13:23:43 +0000 (15:23 +0200)
commitcb938f2c4ddfee6fad950289f6a2ed497c11ee03
treed69aad8acc7daa0bd00abd09bf39041e1e08d174
parenteca1bfec46214a902f24bce2b44c96ae364f1219
x86/hpet: clear unwanted bits

Leaving certain bits set when being started from an environment where
the HPET was already in use can affect functionality. Clear those bits
to be on the safe side.

We should also consider ignoring the HPET altogether if any reserved
bits are found to be set.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hpet.c
xen/include/asm-x86/hpet.h